
<MAIN> myscript |0|1</MAIN>

<KSCRIPT>
    <ID> myscript </ID>
    <PLAY> purewrapper | 400 |0 |1 </PLAY>
    <Play> blankpart | 25 |0 | 1 </play>
    <PLAY> twirl | 99999 |0 |1 </PLAY>
    <Play> blankpart | 25 |0 | 1 </play>

</KSCRIPT>

----------------------------- a blank between effects.
///<KPART> <ID> blankpart  </ID>

    <Fx><Pa> FillRc </Pa><Pa></Pa><Pa>cte| 0 </Pa></Fx>

///</KPART>

<KPART>
wrapper -> fixe -> zoom
<KDBM> mod | fastcodequinoxe/weez.dbm </kdbm>

    <KIMG> purelamers256x256 | fastcodequinoxe/purelamers256x256.bsh </KIMG>
    <ID> purewrapper </ID>
    <KTABLE> wrapperall | 0,1 | 200,0 | 300,0 | 400,0.5 </KTABLE>
    <KTABLE> wrapperdoffset | 0,1 | 200,0 | 300,0 | 400,0 </KTABLE>
    <KTABLE> wrapperzoom | 0,1 | 200,1 | 300,1 | 400,0 </KTABLE>
    <KTABLE> wrapperoffs | 0,0.5 | 200,0.5 | 300,0.5 | 400,1.5 </KTABLE>
    <KTABLE> fadeinout | 0,0 | 100,1 | 350,1 | 400,0 </KTABLE>

<fx>
<pa> playdbm </pa>
<pa> mod </pa>
</fx>
<fx>
<pa> dbmvol</pa>
<pa> CTE|1 </pa>
</fx>

    < Fx>
        <Pa>setpalette</Pa>
        <Pa>purelamers256x256 </Pa>   we have seen each image stands for a 256 color palette too.
    </Fx>
    <Fx><Pa>BindPalette</Pa>  1st parameter is always the name of the effect.

            <Pa> aft|fadeinout|0|0 </Pa>
            <Pa>CTE|0</Pa>              type of fade:0,1,2,3
            <Pa>CTE|0</Pa>            optional color 0->255 (0)
            <Pa> purelamers256x256 </Pa>     palette where to fade ( "B" )
            <Pa> purelamers256x256 </Pa>            optional source Palette(2)

            <Pa>CTE|0</Pa>              type of fade:0,1,2,3
            <Pa>CTE|0</Pa>            optional color 0->255 (0)
            <Pa>purelamers256x256</Pa>       Palette where to fade ( "B" )
            <Pa>purelamers256x256</Pa>       optional source Palette(2)

            <Pa>CTE|0</Pa>              type of fade:0,1,2,3
            <Pa>CTE|0</Pa>            optional color 0->255 (0)
            <Pa>purelamers256x256</Pa>       Palette where to fade ( "B" )
            <Pa>purelamers256x256</Pa>       optional source Palette(2)
        </Fx>

    <Fx><Pa> Warper </Pa>
            <Pa> </Pa>              the rectangle where to draw (default)
            <Pa> purelamers256x256 </Pa> the 256x256 texture to deform

            <pa>aft|wrapperzoom|0|0</pa> zoomx rate
            <pa>aft|wrapperzoom|0|0</pa> zoomy rate

            <pa>aft|wrapperoffs|0|0</pa> offset x
            <pa>aft|wrapperoffs|0|0</pa> offset y

            <pa>aft|wrapperdoffset|0|0</pa> amplitude
            <pa>aft|wrapperdoffset|0|0</pa> frequency
            <pa>aft|wrapperall|0|0</pa> defo x offset
            <pa>aft|wrapperall|0|0</pa> defo y offset

            <Pa>CTE|0</Pa> mapping type
    </Fx>

</KPART>
<KPART>
    <ID>twirl</ID>
    <KIMG> redplasma | fastcodequinoxe/redplasma </KIMG>
    <KIMG> cite | fastcodequinoxe/cite </KIMG>
    <KIMG> equinoxe | fastcodequinoxe/equinoxe </KIMG>
    <KIMG> ruledda | fastcodequinoxe/ruledda </KIMG>

    <KCOLORTABLE> coltab1 | fastcodequinoxe/colortablenodiff.iff |0|255|255|255    </KCOLORTABLE>
    <Fx>
        <Pa> setpalette </Pa>
        <Pa> redplasma </Pa>   we have seen each image stands for a 256 color palette too.
    </Fx>

    <Fx>
        <Pa> Twirl </Pa>
        <Pa></Pa>
        <Pa> redplasma </Pa>

        <Pa>SIN|0|1|0.25</Pa> ofsx
        <Pa>COS|0|1|0.25</Pa> ofsY

        <Pa>SIN|0|0.1|1</Pa> start angle
        <Pa>CTE|0</Pa>    amp. angle
        <Pa>CTE|0</Pa>    freq angle

        <Pa>CTE|0</Pa>         start dist.
        <Pa>SIN|0|0.6|0.5</Pa> amp.dist
        <Pa>COS|0|0.2|32</Pa> freq dist

        <Pa>CTE|0</Pa> mapping type
    </Fx>

    <Fx><Pa> MotionBlur  </Pa>
            <Pa></Pa> default rec
            <Pa> coltab1   </Pa>        50% transparency with precedent frame.
    </Fx>

    < Fx><Pa>RadialBlur</pa>
        <Pa>  </Pa>     rectangle by default.
        <Pa> coltab1 </Pa>              "persistence with decay" is very handy with radialblur.
        <Pa> sin|0.5|0.8|0.2 </Pa>  X center of the radial blur.
        <Pa> sin|0.5|0.6|0.2</Pa>   Y
        <Pa>cte|0.92</Pa>           Width zooming strength [0,1]
        <Pa>cte|0.92</Pa>           Height zooming strength [0,1]
    </Fx>

    + 1 sprite :-)
    <Fx><Pa> Sprite </Pa>
        <Pa></Pa>
        <Pa> cite </Pa>
        <Pa> 4cte|0.4|0.35|0.6|0.65 </Pa>
    </Fx>

    <Fx><Pa> sprite </pa>
        <Pa> </Pa>
        <Pa> equinoxe </Pa>
        <Pa> rnd | 0.1 | 0.2 </Pa>
        <Pa> rnd | 0.0 | 0.1 </Pa>
        <Pa> rnd | 0.8 | 0.9 </Pa>
        <Pa> rnd | 0.2 | 0.3</Pa>
    </Fx>

    <Fx><Pa> sprite </pa>
        <Pa> </Pa>
        <Pa> ruledda </Pa>
        <Pa> rnd | 0.0 | 0.1 </Pa>
        <Pa> rnd | 0.35 | 0.45 </Pa>
        <Pa> rnd | 0.3 | 0.4 </Pa>
        <Pa> rnd | 0.55 | 0.65</Pa>
    </Fx>

</KPART>

